﻿<%@ Page Language="C#" MasterPageFile="~/AdminZone/AdminMaster.master" AutoEventWireup="true" CodeFile="LocationManagement.aspx.cs" Inherits="AdminZone_LocationManagement" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="toolbar-box">
        <div class="m">
            <div class="pagetitle">
                <h2>
                    Quản lý địa điểm
                </h2>
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <!-----START Percent Config table-------->
            <div class="width-40 fltlft">
                <fieldset class="adminform">
                    <legend>Help</legend>
                    Bạn có thể chỉnh sửa thay đổi tên địa điểm và vùng miền cho phù hợp.....
                    <br /><br /><br /><br />
                    <br /><br /><br /><br />
                    <br /><br /><br /><br />
                </fieldset>
            </div>
            <div class="width-60  fltrt">
                <fieldset class="adminform">
                    <fieldset>
                        <legend>Add New</legend>
                        <table>
                            <tr>
                                <td align="center">
                                    <ul class="adminformlist">
                                        <li class="clearing">
                                            <asp:Label ID="lblError" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                                        </li>
                                        <li>
                                            <label id="Label3" class="required" title="Thông tin mô tả">
                                                Tên địa điểm :<span class="star">&#160;*</span></label>
                                            <asp:TextBox MaxLength="30" size="30" ID="txtLocation" runat="server" class="required"></asp:TextBox>
                                        </li>
                                        <li>
                                            <label id="Label1" class="required" title="Thông tin mô tả">
                                                Thuộc vùng :<span class="star">&#160;*</span></label>
                                            <asp:DropDownList ID="ddlRegion" runat="server" Width="200px">
                                            </asp:DropDownList>
                                        </li>
                                        <li>
                                            <label id="Label4" class="required" title="Thông tin mô tả">
                                                Hoạt động :</label>
                                            <asp:CheckBox ID="cbxAction" runat="server" />
                                        </li>
                                        <li class="clearing">
                                            <label id="Label2" class="required" title="Thông tin mô tả">
                                            </label>
                                            <asp:Button ID="btnSave" runat="server" Text="Save" class="button" 
                                                onclick="btnSave_Click" />
                                            <asp:Button ID="btnClear" runat="server" Text="Clear" class="button" />
                                        </li>
                                        <li class="clearing"></li>
                                    </ul>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <legend>Location Management</legend>
                    <asp:GridView ID="gvLocation" runat="server" CellPadding="4" AutoGenerateColumns="False"
                        Width="618px" AllowPaging="True" PageSize="15" BackColor="White" BorderColor="#CC9966"
                        BorderStyle="None" BorderWidth="1px" 
                        OnPageIndexChanging="gvLocation_PageIndexChanging" style="text-align: center">
                        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                        <RowStyle BackColor="White" Height="25" ForeColor="#330099" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" Height="30" ForeColor="#FFFFCC" />
                        <Columns>
                            <asp:TemplateField HeaderText="Delete">
                                <HeaderTemplate>
                                    <input type="checkbox" onclick="checkAll(this,'checkDel');" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <input type="checkbox" name="checkDel" value='LocationID' />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Tên địa điểm" DataField="LocationName">
                                <ItemStyle HorizontalAlign="center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Thuộc" DataField="ParentName"></asp:BoundField>
                            <asp:HyperLinkField HeaderText="Edit" DataNavigateUrlFormatString="~/AdminZone/Location_Add.aspx?id={0}"
                                DataNavigateUrlFields="LocationID" Text="Edit">
                                <HeaderStyle HorizontalAlign="left" />
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:HyperLinkField>
                        </Columns>
                    </asp:GridView>
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="100px" OnClientClick="return isChecked('checkDel');"
                                    ToolTip="Click here to delete items" onclick="btnDelete_Click" />
                                    <script src="../Js/Common.js" type="text/javascript"></script>
                   
                </fieldset>
            </div>
            <div class="clr" />
        </div>
    </div>
</asp:Content>

